/**
 * Licensee: Hochschule Heilbronn
 * License Type: Academic
 */
package ormsamples;

import org.orm.*;

public class DropLNdMDatabaseSchema {
	public static void main(String[] args) {
		try {
			System.out.println("Are you sure to drop table(s)? (Y/N)");
			java.io.BufferedReader reader = new java.io.BufferedReader(
					new java.io.InputStreamReader(System.in));
			if (reader.readLine().trim().toUpperCase().equals("Y")) {
				ORMDatabaseInitiator
						.dropSchema(de.hhn.pmt.tour.u6.LNdMPersistentManager
								.instance());
				de.hhn.pmt.tour.u6.LNdMPersistentManager.instance()
						.disposePersistentManager();
			}

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
